<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link rel="stylesheet" href="${ctxStatic }/wx/css/pensonal.css" />
        <link href="${ctxStatic }/wx/mui/css/mui.min.css" rel="stylesheet" />
		<script src="${ctxStatic }/wx/mui/js/mui.min.js"></script>
		<script src="${ctxStatic }/zepto/zepto.js"></script>
		 <style>
     	.cash-box{
     		margin-top: 55px;
     	}
     	.mui-input-row input{
     		font-size: 14px;
     	}
     </style>
		<title>订单列表</title>
		<script>
				//将表单序列化为json对象
			$.fn.serializeJson=function(){  
            var serializeObj={};  
            var array=this.serializeArray();  
            var str=this.serialize();  
            $(array).each(function(){  
                if(serializeObj[this.name]){  
                    if($.isArray(serializeObj[this.name])){  
                        serializeObj[this.name].push(this.value);  
                    }else{  
                        serializeObj[this.name]=[serializeObj[this.name],this.value];  
                    }  
                }else{  
                    serializeObj[this.name]=this.value;   
                }  
            });  
            return serializeObj;  
        }; 
		</script>
    </head>
   <body>
		<div id="distrib-c" class="mui-page">
			<div class="mui-navbar-inner mui-bar mui-bar-nav" style="background-color: #16c59b;">
				<button type="button" class="mui-left mui-action-back mui-btn  mui-btn-link mui-btn-nav mui-pull-left"  style="color: #fff;">
					<span class="mui-icon mui-icon-left-nav"  style="color: #fff;"></span>分销
				</button>
				<h1 class="mui-center mui-title"  style="color: #fff;">提现信息</h1>
			</div>
			<div class="mui-page-content">
				<div class="mui-scroll-wrapper">
					<div class="mui-scroll">
						<form class="mui-input-group cash-box" id="subForm" action="${ctxFront}/mobile/extractinsert" method="post">
							<input type="hidden" name="userId" value="1" />
						    <div class="mui-input-row">
						        <label>姓名</label>
						        <input type="text" class="mui-input-clear" placeholder="请输入姓名" name="name" id="name">
						    </div>
						    <div class="mui-input-row">
						        <label>身份证号</label>
						        <input type="text" class="mui-input-clear" placeholder="请输入身份证号" name="identification" id="identification">
						    </div>
						    <div class="mui-input-row">
						        <label>账户名称</label>
						        <input type="text"   placeholder="请输入账户名称" name="bankName" id="bankName">
						    </div>
						    <div class="mui-input-row">
						        <label>开户行</label>
						        <input type="text"   placeholder="请输入开户行" name="bankPlace" id="bankPlace">
						    </div>
						    <div class="mui-input-row">
						        <label>银行卡账号</label>
						        <input type="text"  placeholder="请输入银行卡号" name="bankCard" id="bankCard">
						    </div>
						    <div class="cash-btn">
						    	<input type="button" value="保存" id="sub" onclick="check();"/>
						    </div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			mui.init();
			function check(){
				var name = $('#name');
				var identification = $('#identification');
				var bankName = $('#bankName');
				var bankPlace = $('#bankPlace');
				var bankCard = $('#bankCard');
				if($.trim(name.val()) == ''){
					mui.alert('请填写姓名');
					return;
				} 
				if($.trim(identification.val()) == ''){
					mui.alert('请填写身份证号');
					return;
				} 
				if($.trim(bankName.val())==''){
					mui.alert('请填写帐号名称！');
					return;
				}
				if($.trim(bankPlace.val())==''){
					mui.alert('请填写开户行');
					return;
				}
				if($.trim(bankCard.val())==''){
					mui.alert('银行卡号不能为空');
					return;
				}
				$('#subForm').submit();
				window.location.href = "${ctxWx}/pu/fpPage";
			}
		</script>
	</body>
</html>